#include "head.h"
#include "smg.h"
#include "DS1302.h"


int main()
{
	u8 buf1[8];
	ds1302_init();
	while(1)
	{
		ds1302_read_time();	
		buf1[0]=gsmg_code[gDS1302_TIME[2]/16];
		buf1[1]=gsmg_code[gDS1302_TIME[2]%16];
		buf1[2]=0x40;
		buf1[3]=gsmg_code[gDS1302_TIME[1]/16];
		buf1[4]=gsmg_code[gDS1302_TIME[1]%16];
		buf1[5]=0x40;
		buf1[6]=gsmg_code[gDS1302_TIME[0]/16];
		buf1[7]=gsmg_code[gDS1302_TIME[0]%16];
		smg_display(buf1);	
	}
	return 0;
}